from odoo import api, fields, models

# 引入odoo内置的板块

class Adjust_price(models.Model):
    _name = 'adjust.price'
    # 相当于给此模型一个唯一id，之后很多地方需要用到
    _description = '调价'
    # 房间号
    room_number = fields.Char(
        string='房间号',
        required=True
    )
    # 预设单价
    predetermined_unit_price= fields.Char(
        '预设单价',
        required=True
    )
    # 折扣
    discount = fields.Float(
        '折扣',
        default=0.00,
        required=True
    )
    #  折后价
    discount_price = fields.Char(
        ' 折后价',
        required=True
    )

